<template>
  <view class="page bg-white">
    <view class="main">
      <rich-text :nodes="content"></rich-text>
    </view>
  </view>
</template>

<script setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'

const content = ref('相关内容')

const setNavTitle = (title) => {
  uni.setNavigationBarTitle({
    title: title
  })
}
onLoad((options) => {
  switch (options.type) {
    case 'privacy':
      setNavTitle('隐私政策')
      break;
    case 'agreement':
      setNavTitle('用户协议')
      break;
    case 'about':
      setNavTitle('关于我们')
      break
  }
})
</script>

<style scoped lang="scss"></style>